package com.fm.financemanage;

import com.fm.financemanage.component.QuartzComponent;
import com.fm.financemanage.component.TaskQuartzBean;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.HashMap;

@RunWith(SpringRunner.class)
@SpringBootTest
public class FinancemanageService {

    @Autowired
    private QuartzComponent quartzComponent;

    @Test
    public void t1(){
        final HashMap<Object, Object> objectObjectHashMap = new HashMap<>();
        objectObjectHashMap.put("type","templet_message");
        objectObjectHashMap.put("id",1);
        quartzComponent.getTrigger(TaskQuartzBean.class,"*/30 59 18 27 5 ? 2024",objectObjectHashMap,"text","tex"+1);
    }
}
